<!doctype html>
<html lang="en">
	<head>
		<title>JavaScript Patterns</title>
		<meta charset="utf-8">
	</head>
	<body>
		<script>
			/* Title: Array literal
			 * Description: use array literal notation to avoid potential errors when creating dynamic arrays at runtime
			 */

			// antipattern
			var a = new Array();


			// preferred
			var a = [];


			// References
			// http://shop.oreilly.com/product/9780596806767.do
		</script>
	</body>
</html>